package ClassOne.Iterator;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class TestMap {
    public static void main(String[] args) {
        Map map=new HashMap();
        map.put("1","c");
        map.put("2","b");
        map.put("3","a");

        Set set=map.keySet();

        Iterator it=set.iterator();

        while (it.hasNext()){
            String key=(String) it.next();
            System.out.println(map.get(key));
        }
    }
}
